/*
 * @Author: yehongbo 1394168736@qq.com
 * @Date: 2024-01-13 15:57:58
 * @LastEditors: yehongbo 1394168736@qq.com
 * @LastEditTime: 2024-04-07 10:33:06
 * @FilePath: \giteeDownload\vue3ant\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/antvG6test',
    name: 'antvG6test',
    component: () =>
      import('../views/antvG6test.vue')
  },
  {
    path: '/antvG6Try',
    name: 'antvG6Try',
    component: () =>
      import('../views/antvG6Try.vue')
  },
  {
    path: '/objAddPro',
    name: 'objAddPro',
    component: () =>
      import('../views/objAddPro.vue')
  },
  {
    path: '/wangEditor',
    name: 'wangEditor',
    component: () =>
      import('../views/wangEditor.vue')
  },
  {
    path: '/zixulie',
    name: 'zixulie',
    component: () =>
      import('../views/zixulie.vue')
  },
  {
    path: '/gantt',
    name: 'gantt',
    component: () => import("../views/gantt.vue")
  },
  {
    path: '/yulan',
    name: 'yulan',
    component: () => import("../views/yulan.vue")
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
